home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 May / MacHome CD (May 2001).iso / mac / Stuff / Software / Home / Language Assistant 2.1 / Translators / altavista.trn next >
Text File  |  2001-01-21  |  4KB  |  107 lines

  1. # A translator definition file for use with Language Assistant
  2. # General form: varname=value
  3. # Extended form: varname=name:value
  4. #
  5. # General form is used in most cases; extended form is used only when the 
  6. # variable contains two parts, an identifier or name, and an actual value.
  7. # The presence of whitespace before and after the equals sign will not
  8. # affect anything.
  9. # Arrays are notated with []s after their names; these special variables 
  10. # may be set as many times as necessary to append more values to them.
  11. # Extended form arrays are notated with [][]s after their names.
  12. #
  13. # And, as you have probably noticed by now, lines that begin with a '#'
  14. # sign are treated as comments and will not be evaluated.
  15. # The following constants are available for use throughout this file:
  16. # $la_language1: the name (or identifier) of the first language menu
  17. # $la_language2: the name (or identifier) of the second language menu
  18. # $la_text: the text typed into the translation box
  19. #
  20. # Note: only one language menu will appear if the language_type is set to
  21. # 'single'.  In this case, you should use $la_language1 to retrive the 
  22. # language.
  23.  
  24. # cookie[][]: the names of any cookies that should be retrieved
  25. cookie=sessionid:
  26.  
  27. # cookie_host: the domain name of the host to retrieve cookies from
  28. cookie_host=babel.altavista.com
  29.  
  30. # cookie_port: the port of the host to retrieve cookies from
  31. cookie_port=80
  32.  
  33. # cookie_script: the name of the script or file to retrive cookies from
  34. cookie_script=/translate.dyn
  35.  
  36. # data_start[]: a unique string that directly precedes the translated next
  37. data_start=<textarea rows="3" wrap=virtual cols="56" name="q">
  38.  
  39. # data_end[]: a unique string that comes directly after the translated next
  40. data_end=</textarea>
  41.  
  42. # add more (optional) possible data_starts and data_ends
  43. data_start=<td bgcolor=white>
  44. data_end=</td>
  45.  
  46. # the internet text encoding name to use with the MacOS Text Encoding Converter
  47. encoding=utf-8
  48.  
  49. # engine_name: the name of the translator
  50. engine_name=AltaVista
  51.  
  52. # form_input[][]: an array of html form inputs to send to the translation server
  53. form_input=doit:Done
  54.  
  55. # add more form_inputs
  56. form_input=BabelFishFrontPage:yes
  57. form_input=bblType:urltext
  58. form_input=urltext:$la_text
  59. form_input=url:http://
  60. form_input=lp:$la_language1
  61.  
  62. # form_type: html form type; always either 'get' or 'post'
  63. form_type=post
  64.  
  65. # get_cookies: should we query cookie_host for cookies during the 
  66. # "Starting up..." stage?
  67. get_cookies=false
  68.  
  69. # language[][]: the different languages and their "identifiers"
  70. language=en_fr:English to French
  71.  
  72. # add more languages
  73. language=en_de:English to German
  74. language=en_it:English to Italian
  75. language=en_pt:English to Portuguese
  76. language=en_es:English to Spanish
  77. language=fr_en:French to English
  78. language=de_en:German to English
  79. language=it_en:Italian to English
  80. language=pt_en:Portuguese to English
  81. language=es_en:Spanish to English
  82. language=de_fr:German to French
  83. language=fr_de:French to German
  84.  
  85. # language1_default: default menu selection for language1
  86. language1_default: en_fr
  87.  
  88. # language2_default: default menu selection for language2 (use if language_type=dual)
  89. language2_default: 
  90.  
  91. # language_type: should we show two translation menus, or just one; always 'single' or 'dual'
  92. language_type=single
  93.  
  94. # referrer: referrer to use when sending http requests to the translation server
  95. referrer=http://babel.altavista.com/translate.dyn
  96.  
  97. # translate_host: the domain name of the host to retrieve translations from
  98. translate_host=babel.altavista.com
  99.  
  100. # translate_port: the port of the host to retrieve translations from
  101. translate_port=80
  102.  
  103. # cookie_script: the name of the script or file to retrive translations from
  104. translate_script=/translate.dyn